< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03103100.xhp

(section: let) (bookmark: bm_id3147242)
Let statement

Let; ステートメント

Let Statement [Runtime]
Let ステートメント [実行時](hd_id3147242.1)

Assigns a value to a variable.
変数に値を代入します。(par_id3149233.2)

(/section: let)

Syntax:
構文:(hd_id3153127.3)

[Let] VarName=Expression
[Let] VarName=Expression(par_id3154285.4)

Parameters:
パラメータ:(hd_id3148944.5)

VarName: Variable that you want to assign a value to. Value and variable type must be compatible.
VarName: 値を代入する変数。変数と代入する値は、データ型が一致している必要があります。(par_id3147560.6)

Note Icon 注マーク As in most BASIC dialects, the keyword Let is optional.
大部分の BASIC 言語でそうであるように、キーワード Let は省略可能です。(par_id3148451.7)

Example:
例:(hd_id3145785.8)

Sub ExampleLen
Sub ExampleLen(par_id3150441.9)

Dim sText as String
Dim sText as String(par_id3159254.10)

Let sText = "Las Vegas"
Let sText = "Las Vegas"(par_id3149481.11)

msgbox Len(sText) REM returns 9
msgbox Len(sText) REM 9 文字(par_id3152939.12)

End Sub
End Sub(par_id3146921.13)


< Prev / Next >